<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        body{
            margin: 0;
        }
        .con a{
            display: block;
            /* width: calc(25% - 4px); */
            width: 25%;
            height: 100px;
            background-color: gold;
            text-align: center;
            line-height: 100px;
            float: left;
            text-decoration: none;
            color: #333333;
            font-size: 18px;
            border: 2px solid #000000;
            /* 计算盒子尺寸时把边框也加入到盒子的尺寸中去 */
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <div class="con">
        <a href="#">菜单文字</a>
        <a href="#">菜单文字</a>
        <a href="#">菜单文字</a>
        <a href="#">菜单文字</a>
    </div>

</body>
</html>